<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<!--    <title><%= htmlWebpackPlugin.options.title %></title>-->
    <title>gao_wen_ze</title>
  </head>
  <body>
<!--    <noscript>-->
<!--      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>-->
<!--    </noscript>-->
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>

<!--  <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>-->
  <script type="text/javascript" 	src="//api.map.baidu.com/api?v=2.0&ak=FnDNFNb7qNmynChExaAW558uYU05Ggh4"></script>
  <script type="text/javascript">

    // 搜狐IP定位
    // var Ip = returnCitySN['cip'];
    // var cityname = returnCitySN['cname'];
    // localStorage.setItem('Ip', Ip);
    // localStorage.setItem('cityname', cityname)


  // 百度IP定位
    // function myFun(result){
    //   debugger
    //   var cityName = result.name;
    // }
    // var myCity = new BMap.LocalCity();
    // myCity.get(myFun);

// 浏览器定位
    var geolocation = new BMap.Geolocation();
    geolocation.getCurrentPosition(function(r){
      if(this.getStatus() == BMAP_STATUS_SUCCESS){
        // var mk = new BMap.Marker(r.point);
        // map.addOverlay(mk);
        // map.panTo(r.point);
        // alert('您的位置：'+r.point.lng+','+r.point.lat);
        // debugger
        localStorage.setItem('cityname',  r.address.city)
      }
      else {
        alert('failed'+this.getStatus());
      }
    });
  </script>
</html>
